package com.zyicoding.myfactory.service.impl;

import com.zyicoding.myfactory.dao.FactorymoneyMapper;
import com.zyicoding.myfactory.service.FactoryMoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class FactoryMoneyServiceImpl implements FactoryMoneyService {
    @Autowired
    private FactorymoneyMapper factorymoneyMapper;

    @Override
    public Double selectFactoryMoney() {
        return factorymoneyMapper.selectList(null).get(0).getMoney();
    }
}
